/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package application;
import gestionVip.*;
import plannificationProjections.*;
import java.lang.Object;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.TreeMap;

/**
 *
 * @author p1102040
 */
public class appli {
    
     public static Map<Integer,Vip> listeVip = new TreeMap<Integer,Vip>();
     public static Map<Integer,Film> listeFilm = new TreeMap<Integer,Film>();
    
     public static void afficherVip()
     {
        for (Map.Entry<Integer,Vip> entree : listeVip.entrySet()) 
        {
            entree.getValue().afficher();
	}
     }
     
    public static String toString(Film[] tabFilm)
   {
       String ret="\n";
       for(int i=0;tabFilm[i] instanceof Film;i++)
       {
           ret=ret+tabFilm[i].getTitre()+"\n";        
       }
       return ret;
   }
     
     public static void main (String [] arg)
    {
        
         Film[] tabFilm = new Film[500];
         Object photo = new Object();
         tabFilm[0]=new Film(1,"Seven","Albert","Pitt Freeman","Thriller","LM");
         tabFilm[1]=new Film(2,"Kill Bill","Tarentino","Thurman Carradine","Gore","LM");
         Vip john = new Acteur(100,tabFilm,"Pitt","Brad",49,"USA",photo,"Acteur",9,"AJ");
         Vip cb = new Realisateur(17,tabFilm,"Berry","Claude",60,"Francais",photo,"Real",50,"AJ");
         listeVip.put(cb.getIdVIP(), cb);
         listeVip.put(john.getIdVIP(), john);
         afficherVip();
    }
     
}
